Source for file SC_Initial.php
Documentation is available at SC_Initial.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* @author LOCKON CO.,LTD.
* @version $Id: SC_Initial.php 18747 2010-06-23 04:42:53Z kajiwara $
define('ECCUBE_VERSION', "2.4.4");
DB_TYPE . "://" . DB_USER . ":" . DB_PASSWORD . "@"
. DB_SERVER . ":" . DB_PORT . "/" . DB_NAME);
define("DEFAULT_DSN", "pgsql://nobody:password@localhost:5432/eccubedb");
* 運用時 - E_ALL & ~E_NOTICE
* TODO SJIS-win や, eucJP-win への対応
ini_set("mbstring.http_input", CHAR_CODE);
ini_set("mbstring.http_output", CHAR_CODE);
ini_set("auto_detect_line_endings", 1);
ini_set("default_charset", CHAR_CODE);
ini_set("mbstring.internal_encoding", CHAR_CODE);
ini_set("mbstring.detect_order", "auto");
ini_set("mbstring.substitute_character", "none");
* mtb_constants.php を読み込んで定数を設定する.
* キャッシュディレクトリに存在しない場合は, 初期データからコピーする.
$errorMessage = "<div style='color: #F00; font-weight: bold; "
. "background-color: #FEB; text-align: center'>"
. " にユーザ書込み権限(777等)を付与して下さい。</div>";
if (is_file(CACHE_PATH . "mtb_constants.php")) {
require_once(CACHE_PATH . "mtb_constants.php");
// キャッシュが無ければ, 初期データからコピー
} elseif (is_file(CACHE_PATH . "../mtb_constants_init.php")) {
$handle = fopen(CACHE_PATH . "mtb_constants.php", "w");
if (fwrite($handle, $mtb_constants) === false) {
require_once(CACHE_PATH . "mtb_constants.php");
die(CACHE_PATH . "../mtb_constants_init.php が存在しません");
* Smarty キャッシュディレクトリを生成する.
mkdir(MOBILE_COMPILE_DIR);
mkdir(COMPILE_ADMIN_DIR);
Documentation generated on Fri, 24 Feb 2012 14:00:17 +0900 by Seasoft
|